package main

import (
	_ "day12_12_homework/initcation"
	"day12_12_homework/internal/router"
	"day12_12_homework/internal/validators"
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/binding"
	"github.com/go-playground/validator/v10"
)

func main() {
	r := gin.Default()
	if v, ok := binding.Validator.Engine().(*validator.Validate); ok {
		v.RegisterValidation("TelValidator", validators.TelValidator)
	}
	router.Router(r)
	r.Run()
}
